import 'package:flutter/material.dart';
import '../../../controller/overall.dart';

class Header extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Container(
          margin: EdgeInsets.only(right: 5),
          child: Row(
            children: [
              Icon(
                IconData(0xe617, fontFamily: "alIcons"),
                size: 30,
                color: OverAll.LocationBarColor,
              ),
              Text(
                "松林2",
                style: TextStyle(fontSize: 16, color: OverAll.LocationBarColor),
              ),
              SizedBox(
                width: 5,
              ),
              Icon(
                IconData(0xe60e, fontFamily: 'alIcons'),
                size: 5,
                color: OverAll.LocationBarColor,
              )
            ],
          ),
        ),
        Expanded(
            child: Container(
          padding: EdgeInsets.only(left: 10, top: 5, bottom: 5),
          decoration: BoxDecoration(
              borderRadius: BorderRadius.all(Radius.circular(20)),
              color: Color.fromARGB(100, 211, 211, 211)),
          child: Row(
            children: [
              Icon(
                IconData(0xe7ea, fontFamily: "alIcons"),
                size: 20,
                color: Colors.black12,
              ),
              SizedBox(
                width: 20,
              ),
              Text(
                "输入提示",
                style: TextStyle(
                    fontSize: 16,
                    fontWeight: FontWeight.w300,
                    color: Colors.black12),
              )
            ],
          ),
        )),
        Container(
          child: Stack(
            alignment: Alignment.topCenter,
            overflow: Overflow.visible,
            children: <Widget>[
              Container(
                margin: EdgeInsets.only(right: 10),
                decoration: BoxDecoration(),
                padding: EdgeInsets.all(8),
                child: Icon(IconData(0xe603, fontFamily: "alIcons"),
                    color: Colors.black, size: 25),
              ),
              Positioned(
                child: Container(
                  padding: EdgeInsets.symmetric(horizontal: 4),
                  decoration: BoxDecoration(
                    color: Colors.red,
                    shape: BoxShape.circle,
                  ),
                  child: Text(
                    '14',
                    style: TextStyle(
                      fontSize: 11,
                      color: Colors.white,
                    ),
                  ),
                ),
                top: 5,
                right: 6,
              )
            ],
          ),
        )
      ],
    );
  }
}
